<%@ include file="/WEB-INF/jsp/include/taglibs.jsp"%>

<portlet:actionURL var="actionList">
	<portlet:param name="action" value="list" />
</portlet:actionURL>

<form:form method="post" action="${actionList}">
	<h1><spring:message code="bibliographicalCardList.title" /></h1>

	<table class="search">
		<tr>
			<td><spring:message code="bibliographicalCard.title" /></td>
			<td><input name="title" /></td>
		</tr>
		<tr>
			<td><input type="submit" class="button" name="search"
				value="<spring:message code="button.search" />" /></td>
		</tr>
	</table>

	<table>
		<tr>
			<td><portlet:renderURL var="actionNew">
				<portlet:param name="action" value="edit" />
			</portlet:renderURL><a href="${actionNew}"><spring:message code="button.new" /></a></td>
		</tr>
	</table>
	
	<display:table name="bibliographicalCardList" id="row" pagesize="10">
		<display:column property="title" titleKey="bibliographicalCard.title"
			sortable="true" />
		<display:column>
			<portlet:renderURL var="actionEdit">
				<portlet:param name="action" value="edit" />
				<portlet:param name="id" value="${row.bibliographicalCardId}" />
			</portlet:renderURL>
			<a href="${actionEdit}"><spring:message code="button.edit" /></a>
		</display:column>
		<display:column>
			<portlet:actionURL var="actionDelete">
				<portlet:param name="action" value="delete" />
				<portlet:param name="id" value="${row.bibliographicalCardId}" />
			</portlet:actionURL>
			<a href="${actionDelete}"><spring:message code="button.delete" /></a>
		</display:column>
	</display:table>
	
</form:form>
